$OpenBSD: patch-lib_rexml_document_rb,v 1.2 2014/11/14 17:41:50 jeremy Exp $

Fixes CVE-2014-8090: Another Denial Of Service XML Expansion

--- lib/rexml/document.rb.orig	Sat May 18 07:55:14 2013
+++ lib/rexml/document.rb	Thu Nov 13 08:28:16 2014
@@ -236,6 +236,10 @@ module REXML
       end
     end
 
+    def document
+      self
+    end
+
 		private
 		def build( source )
       Parsers::TreeParser.new( source, self ).parse
